<?php

namespace App\Kuafu\Mybank\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;
use App\Kuafu\Mybank\Model\MybankOrderWithholdRecordModel;
use App\Remote\Mybank\Remote;

class MybankAccountEnum extends BaseCodeEnum
{
    public static function getFyAccount()
    {
        return [
            'merchantId' => '0001000F5937721',
        ];
    }

    /**
     * 订货账户信息
     *
     * @return array
     */
    public static function getKfosOrderAccount(): array
    {
        return [
            'payeeId'   => Remote::getKfosBankMerchantId(),
            'payeeType' => MybankOrderWithholdRecordModel::WITHHOLD_MERCHANT,
        ];
    }

    /**
     * 平台账户信息
     *
     * @return array
     */
    public static function getPlatformAccount(): array
    {
        return [
            'payeeId'   => Remote::getIsvOrgId(),
            'payeeType' => MybankOrderWithholdRecordModel::WITHHOLD_PLATFORM,
        ];
    }
}
